home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / makefile.nt < prev    next >
Makefile  |  1993-05-11  |  6KB  |  194 lines

  1. #
  2. # Make file for Microsoft C  Version 7.0 Windows NT Version
  3. # and Microsoft Program Maintenance Utility  Version 1.20
  4.  
  5. # This has never been tried
  6.  
  7. # I do not have access to Windows NT so I have not tested any of this.
  8. # I don't even know if WIN32 is the appropriate #define to use!  
  9. # If it isn't feel free to change all occurences to the standard #define.
  10. # If you make changes further changes for Windows NT, make sure that 
  11. # gnuplot still works with Windows 3.0.
  12. # Also, gnuplot for Windows NT should be built WITHOUT using a DLL - compile 
  13. # without setting __DLL__ and then link all modules into a single EXE.
  14. # rjl 1993-02-01
  15.  
  16. # where to place gnuplot.gih helpfile
  17. HELPFILE = wgnuplot.hlp
  18. TOP = .
  19.  
  20. # /c  means don't link
  21. # /AL means large memory model (large code, large data)
  22. # /W1 means lower warning level
  23. # /I  means extra include directory
  24. # /GA means windows application
  25. # /Fm means produce link map
  26. # /Od means suppress optimizations (esp. for debug)
  27. # /Zi mean prepare for codeview
  28. CFLAGS = /c /ALw /FmGNUPLOT /GA /W1 /D__MSC__ /DREADLINE /DWIN32 /I$(TOP) #/Zi #/Od
  29.  
  30. # see other terminal defines in term.h
  31. TERMFLAGS = 
  32.  
  33. # /NOE means NO EXTernal Dictionary
  34. # /NOI means NO ignore case
  35. # /NOD means no default library (or :specified)
  36. # /CO prepare for codeview
  37. LINKFLAGS = /NOE /NOI /NOD:LLIBCE /ONERROR:NOEXE #/CO 
  38.  
  39. OBJS =  bitmap.obj command.obj contour.obj eval.obj graphics.obj graph3d.obj \
  40.     internal.obj misc.obj parse.obj plot.obj readline.obj scanner.obj \
  41.     setshow.obj specfun.obj standard.obj term.obj util.obj version.obj \
  42.     gnubin.obj binary.obj winmain.obj
  43.  
  44. CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm \
  45.     term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  46.     term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  47. CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  48.     term\iris4d.trm term\kyo.trm term\latex.trm term/pbm.trm term\win.trm
  49. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  50.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  51.     term\v384.trm term\x11.trm
  52. CSOURCE8 = contour.c specfun.c gnubin.c binary.c
  53. WINDOWS = makefile.win makefile.msw README.win win\wcommon.h \
  54.     win\wgnuplib.c win\wgnuplib.def win\wgnuplib.h win\wgnuplib.rc\
  55.     win\wgnuplot.def win\wgnuplot.hpj win\wgnuplot.mnu win\wgnuplot.rc \
  56.     win\wgraph.c win\winmain.c win\wmenu.c win\wpause.c \
  57.     win\wprinter.c win\wresourc.h win\wtext.c win\wtext.h \
  58.     win\geticon.c docs\doc2rtf.c term\win.trm
  59.  
  60. default: wgnuplot.exe $(HELPFILE) wgnuplot.mnu demo\bf_test.exe
  61.  
  62. # default rules
  63. .c.obj:
  64.     cl $(CFLAGS) $*.c
  65.  
  66. linkopt1.msw: makefile.msw
  67.     echo winmain+bitmap+command+eval+graphics+ >linkopt1.msw
  68.     echo graph3d+internal+misc+parse+ >>linkopt1.msw
  69.     echo plot+scanner+setshow+specfun+ >>linkopt1.msw
  70.     echo standard+term+util+version+contour+ >>linkopt1.msw
  71.     echo gnubin+binary+readline+ >>linkopt1.msw
  72.     echo wgnuplib+wtext+wmenu+wpause+wgraph+wprinter > linkopt1.msw
  73.     echo wgnuplot,wgnuplot, >>linkopt1.msw
  74.     echo libw+commdlg+shell+ldllcew >> linkopt1.msw
  75.     echo win\wgnuplot.def >>linkopt1.msw
  76.     echo ; >>linkopt1.msw
  77.  
  78. wgnuplot.exe: $(OBJS) win\wgnuplot.def win\wgnuplot.rc win\wgnuplib.rc winmain.obj linkopt1.msw texticon.ico grpicon.ico
  79.     link $(LINKFLAGS) @linkopt1.msw
  80.     rc -k -dMSRC win\wgnuplot.rc wgnuplot.exe
  81.  
  82. # rules
  83.  
  84. binary.obj: binary.c 
  85.  
  86. bitmap.obj: bitmap.c bitmap.h plot.h
  87.  
  88. command.obj: command.c plot.h setshow.h help.h
  89.     cl $(CFLAGS) /DHELPFILE=\"$(HELPFILE)\" command.c
  90.  
  91. contour.obj: contour.c plot.h
  92.  
  93. eval.obj: eval.c plot.h
  94.  
  95. gnubin.obj: gnubin.c
  96.  
  97. graphics.obj: graphics.c plot.h setshow.h
  98.  
  99. graph3d.obj: graphics.c plot.h setshow.h
  100.  
  101. help.obj: help.c plot.h help.h
  102.  
  103. internal.obj: internal.c plot.h
  104.  
  105. misc.obj: misc.c plot.h setshow.h
  106.  
  107. parse.obj: parse.c plot.h
  108.  
  109. plot.obj: plot.c plot.h setshow.h
  110.  
  111. readline.obj: readline.c
  112.  
  113. scanner.obj: scanner.c plot.h
  114.  
  115. setshow.obj: setshow.c plot.h setshow.h
  116.  
  117. standard.obj: standard.c plot.h
  118.  
  119. specfun.obj: specfun.c plot.h
  120.  
  121. term.obj: term.c term.h plot.h setshow.h bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  122.     cl $(CFLAGS) $(TERMFLAGS) /Iterm term.c
  123.  
  124. util.obj: util.c plot.h
  125.  
  126. version.obj: version.c
  127.  
  128. winmain.obj: win\winmain.c win\wgnuplib.h win\wtext.h plot.h
  129.     cl $(CFLAGS) /DHELPFILE=\"$(HELPFILE)\"  win\winmain.c
  130.  
  131. wgnuplib.obj: win/wgnuplib.c win/wgnuplib.h win/wcommon.h win/wresourc.h
  132.     
  133. wmenu.obj: win/wmenu.c win/wgnuplib.h win/wcommon.h win/wresourc.h
  134.  
  135. wtext.obj: win/wtext.c win/wgnuplib.h win/wcommon.h win/wresourc.h
  136.     
  137. wpause.obj: win/wpause.c win/wgnuplib.h win/wcommon.h win/wresourc.h
  138.     
  139. wprinter.obj: win/wprinter.c win/wgnuplib.h win/wcommon.h win/wresourc.h
  140.     
  141. wgraph.obj: win/wgraph.c win/wgnuplib.h win/wcommon.h win/wresourc.h
  142.     
  143. wgnuplot.mnu: win\wgnuplot.mnu
  144.     copy win\wgnuplot.mnu wgnuplot.mnu
  145.  
  146. # extract icons from wgnuplot.rc
  147. texticon.ico: grpicon.ico
  148.  
  149. grpicon.ico: geticon.exe win\wgnuplot.rc
  150.     geticon win\wgnuplot.rc
  151.  
  152. geticon.exe: win\geticon.c
  153.     cl /AL /DMSDOS /F 5000 /Gt /W1 win\geticon.c
  154.  
  155.  
  156. # convert gnuplot.doc to gnuplot.gih
  157. $(HELPFILE): doc2rtf.exe docs\gnuplot.doc win\wgnuplot.hpj
  158.     doc2rtf docs\gnuplot.doc win\gnuplot.rtf
  159.     hc31 win\wgnuplot.hpj 
  160.  
  161. doc2rtf.exe: docs\doc2rtf.c
  162.     cl /AL /DMSDOS /F 5000 /Gt /W1 docs\doc2rtf.c
  163.  
  164. #make binary demo files
  165. demo\bf_test.exe: bf_test.c dbinary.obj
  166.         cl /AL /D__MSC__ /F 5000 /Gt /W1 /Fedemo\bf_test.exe bf_test.c dbinary.obj
  167.     cd demo
  168.     bf_test
  169.     cd ..
  170.  
  171. dbinary.obj: binary.c
  172.         cl /c /AL /D__MSC__ /F 5000 /Gt /W1 /Fodbinary.obj binary.c
  173.  
  174. # clean up temporary files
  175. clean:
  176.     del *.obj
  177.     del wgnuplot.map
  178.     del win\wgnuplot.res
  179.     del win\gnuplot.rtf
  180.     del doc2rtf.exe
  181.     del demo\bf_test.exe
  182.     del linkopt1.msw
  183.         del *.ico
  184.         del geticon.exe
  185.     
  186. veryclean: clean
  187.     del wgnuplot.exe
  188.     del wgnuplot.hlp
  189.     del wgnuplot.mnu
  190.     del demo\binary1
  191.     del demo\binary2
  192.     del demo\binary3
  193.